/* gtktransitionstate.h
 *
 * Copyright (C) 2007 Andre Moreira Magalhaes <andrunko@gmail.com>
 * Copyright (C) 2007 Renato Araujo Oliveira Filho <renatox@gmail.com>
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Library General Public
 * License as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Library General Public License for more details.
 *
 * You should have received a copy of the GNU Library General Public
 * License along with this library; if not, write to the
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 * Boston, MA 02111-1307, USA.
 */

#ifndef __GTK_TRANSITION_STATE_H__
#define __GTK_TRANSITION_STATE_H__

#include <glib.h>
#include <glib-object.h>

G_BEGIN_DECLS

#define GTK_TYPE_TRANSITION_STATE            (gtk_transition_state_get_type ())
#define GTK_TRANSITION_STATE(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_TRANSITION_STATE, GtkTransitionState))
#define GTK_TRANSITION_STATE_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_TRANSITION_STATE, GtkTransitionStateClass))
#define GTK_IS_TRANSITION_STATE(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_TRANSITION_STATE))
#define GTK_IS_TRANSITION_STATE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_TRANSITION_STATE))
#define GTK_TRANSITION_STATE_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_TRANSITION_STATE, GtkTransitionStateClass))

typedef struct _GtkTransitionState      GtkTransitionState;
typedef struct _GtkTransitionStateClass GtkTransitionStateClass;

typedef void (* GtkTransitionStateProgressFunc) (GtkTransitionState             *state,
                                                 const gchar                    *property_name,
                                                 gdouble                         progress,
                                                 GValue                         *v_result);

struct _GtkTransitionStateClass
{
  GObjectClass parent_class;
};

struct _GtkTransitionState
{
  GObject parent;
};

GType               gtk_transition_state_get_type         (void) G_GNUC_CONST;

GtkTransitionState *gtk_transition_state_new              (GObject                        *object);

GObject            *gtk_transition_state_get_object       (GtkTransitionState             *state);

void                gtk_transition_state_get_range        (GtkTransitionState             *state,
                                                           const gchar                    *property_name,
                                                           GValue                        **v_start,
                                                           GValue                        **v_end);
void                gtk_transition_state_set              (GtkTransitionState             *state,
                                                           const gchar                    *first_property_name,
                                                           ...);
void                gtk_transition_state_set_full         (GtkTransitionState             *state,
                                                           const gchar                    *first_property_name,
                                                           ...);
void                gtk_transition_state_set_progress     (GtkTransitionState             *state,
                                                           gdouble                         progress);

G_END_DECLS

#endif
